package cn.xyy.common.domain.system.auth;

import cn.xyy.common.annotation.jdbc.Columns;
import cn.xyy.common.annotation.jdbc.Tables;
import cn.xyy.common.domain.mvc.PageParam;

/**
 * 角色表
 * 
 * @author xyy
 *
 */
@Tables("t_sys_role")
public class Role extends PageParam {

	@Columns(value = "role_id", primaryKey = true)
	private Integer id;
	@Columns("name")
	private String name;
	@Columns("levels")
	private Integer levels;// 新增用户时只能赋予比自己级别低的角色
	@Columns("status")
	private Integer status;// 角色状态1:正常;2:禁用
	@Columns("description")
	private String description;
	@Columns("data_scope")
	private Integer dataScopeType;// 数据范围（1：全部数据权限 2：自定数据权限 3：本部门及以下数据权限4：本部门数据权限
	// 5：本人）

	public Integer getId() {
		return id;
	}

	public Role setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public Role setName(String name) {
		this.name = name;
		return this;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getLevels() {
		return levels;
	}

	public void setLevels(Integer levels) {
		this.levels = levels;
	}

	public Integer getStatus() {
		return status;
	}

	public Role setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public Integer getDataScopeType() {
		return dataScopeType;
	}

	public void setDataScopeType(Integer dataScopeType) {
		this.dataScopeType = dataScopeType;
	}

}
